//
//  PDFPagePickerGridViewController.h
//  Digital Seamonsters
//
//  Created by Adam Cue on 2/6/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//	The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>
#import "AQGridViewController.h"
#import "PDFPagePreviewView.h"

@protocol PDFPagePickerGridViewControllerDelegate
- (void)pageSelected:(int)selectedPage;
@end


@interface PDFPagePickerGridViewController : AQGridViewController <PDFPagePreviewViewDelegate>{
	CGPDFDocumentRef pdfDocument;
	NSMutableDictionary * _images;
  NSMutableArray * _annotationViews;
	id <PDFPagePickerGridViewControllerDelegate> delegate;
}

#pragma mark ExternalMethods;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil document:(CGPDFDocumentRef)selectedDocument annotationViews:(NSMutableArray *)annotations;
- (UIImage *)loadPdfImageAtIndex:(NSInteger)index;

@property(nonatomic, retain) NSMutableDictionary * images;
@property(nonatomic, retain) NSMutableArray * annotationViews;
@property(nonatomic, assign) id <PDFPagePickerGridViewControllerDelegate> delegate;

@end
